accel label: Remove unneeded spaces
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Aug 2015 07:12:59 +0000 (03:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 29 Aug 2015 07:12:59 +0000 (03:12 -0400)
Having these extra spaces in the accel string is a bit awkward,
since they will be included in text decorations such as underlines.
Removing them has no visible effect.

gtk/gtkaccellabel.c

index 2b9cb77321874dad8313920a469427f792f18adf..95b0043099b47ec4e556f0b54e1f8821280eff69 100644 (file)
@@ -962,12 +962,10 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
       if (have_accel)
        {
          GtkAccelLabelClass *klass;
-         gchar *tmp;
 
          klass = GTK_ACCEL_LABEL_GET_CLASS (accel_label);
-         tmp = _gtk_accel_label_class_get_accelerator_label (klass, accel_key, accel_mods);
-         accel_label->priv->accel_string = g_strconcat ("   ", tmp, NULL);
-         g_free (tmp);
+         accel_label->priv->accel_string =
+             _gtk_accel_label_class_get_accelerator_label (klass, accel_key, accel_mods);
        }
 
       else